#include <QVBoxLayout>
#include <QLabel>

#include "graphic_window.h"
#include <iostream>

GraphicWindow::GraphicWindow(QWidget *parent) : QWidget(parent){
	QLabel *dofLabel = new QLabel;
	dofLabel ->setText(tr("DOF: "));

	glGraphic = new GLGraphic(this);

	QVBoxLayout *layout = new QVBoxLayout;
	layout->addWidget(dofLabel);
	layout->addWidget(glGraphic);
	//layout->addWidget(closeButton);
	
	
	
	
	setLayout(layout);
	
	setWindowTitle(tr("Graphic"));
	
	resize(200, 200);
}

GraphicWindow::~GraphicWindow(){
	delete glGraphic;
}
